import QtQuick 2.0
import QtQuick.Controls.Styles 1.4
import QtQuick.Layouts 1.3

TabViewStyle {
        frame:Rectangle {
            color: "#ffffff"
        }
        tab:Item{
            implicitWidth: tabView.width/control.count
            implicitHeight: 45
            ColumnLayout{
                anchors.fill:parent
                Image{
                    id:image
                    source:control.getTab(styleData.index).icon
                    sourceSize:Qt.size(25,25)
                    Layout.alignment: Qt.AlignCenter
                    Layout.preferredWidth: 25
                    Layout.preferredHeight: 25
                }
                Text{
                    Layout.alignment: Qt.AlignCenter
                    Layout.fillWidth: true
                    Layout.preferredHeight: 20
                    text:styleData.title
                    fontSizeMode: Text.FixedSize
                    color: styleData.selected?"#269BFF":"#3A4654"
                    horizontalAlignment : Text.AlignHCenter

                    font{
                        family:"迷你简汉真光标"
                        pixelSize: 8
                    }
                }

            }

        }
    }
